home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / Ken Long / NewMaxwell-c / Original / ball.h next >
Encoding:
Text File  |  1994-12-04  |  360 b   |  12 lines  |  [TEXT/KAHL]

  1. typedef struct particle {
  2.     long x,y;                /* location */
  3.     long vx, vy;            /* velocity */
  4.     int    pict;                /* which picture this ball is */
  5. } ball;
  6.  
  7. #define    GRAD    6            /* radius for drawing (quickdraw units) */
  8. #define    CRAD    28            /* radius for collision (box units) */
  9. #define    SDIM    (2*GRAD)    /* diameter on screen */
  10.  
  11. #define    SLOW    225            /* max v squared for slow ball */
  12.